import logging
from python_logstash_async.handler import AsynchronousLogstashHandler

logger = logging.getLogger(__name__)
handler = AsynchronousLogstashHandler('localhost', 5959, database_path=None)
logger.addHandler(handler)

logger.warning('This is a warning message')
